/*
 * ConversionService.java
 *
 * Created on April 10, 2007, 12:00 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.jjenkins.data;

/**
 * This class contains all the attributes, which are manipulated using setters and getters
 * @author Intex2Week
 */
public class ConversionService extends RevenueSourceBO {
    private double unit_price = 0.0;
    private String conversionType = null;
    private double calPrice = 0.0;
    
    /**
     * 
     * @param guid 
     */
     public ConversionService (String guid)
    {
        super.setId(guid);
    }

    /**
     * gets unit price
     * @return unit price
     */
    public double getUnit_price ()
    {
        return unit_price;
    }

    /**
     * sets the unit price
     * @param unit_price 
     */
    public void setUnit_price (double unit_price)
    {
        this.unit_price = unit_price;
    }

    /**
     * gets the conversion type
     * @return conversion type
     */
    public String getConversionType ()
    {
        return conversionType;
    }

    /**
     * sets the conversion type
     * @param conversionType 
     */
    public void setConversionType (String conversionType)
    {
        this.conversionType = conversionType;
    }
    
    /**
     * calculates the price
     * @return calcPrice()
     */
     public double calcPrice(){
        //setPrice(getConceptualBackup().getPrice() * getBackupSize() * getMonthsBetween(getBeginDate(), getEndDate()));
        return calPrice;
        
    }
    
    /**
     * creates the description
     * @return getDescription()
     */
     public String createDescription(){
        //setDescription(getBackupSize() + "  GB             Backup Service         Date:  " + getBeginDate() + " to " + getEndDate());
        return getDescription();
        
    }
    
   
   
    
}
